﻿namespace LowCoding.Dto.Sys
{
    public class SysUserDto
    {
        /// <summary>
        /// Id
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 公司Id
        /// </summary>
        public string CmpId { get; set; }

        /// <summary>
        /// 公司代码
        /// </summary>
        public string CmpCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CmpName { get; set; }

        /// <summary>
        /// 用户代码
        /// </summary>
        public string Code { get; set; }

        private string dptIds = string.Empty;

        /// <summary>
        /// 部门
        /// </summary>
        public string DptId { get; set; }

        private string roleIds = string.Empty;

        /// <summary>
        /// 角色
        /// </summary>

        public string RoleIds
        {
            get { return roleIds ?? string.Empty; }
            set { roleIds = value; }
        }

        /// <summary>
        /// 部门
        /// </summary>
        public string ShowDepartments { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public string ShowRoles { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 登陆密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 原始密码
        /// </summary>
        public string OldPassword { get; set; }

        /// <summary>
        /// 密码确认
        /// </summary>
        public string ConfirmPassword { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        public string ValidCode { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>

        public string Mobile { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>

        public string Email { get; set; }

        private string _status = string.Empty;

        public DateTime? Created { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creator { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LastModified { get; set; }

        /// <summary>
        /// 最后修改人
        /// </summary>
        public string LastModifier { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status
        {
            get { return _status; }
            set { _status = value; }
        }

        /// <summary>
        ///  备注
        /// </summary>
        public string Remark { get; set; }

        public string CMPUSRTYPE { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string UsrDptName { get; set; }
    }
}